<template>
	<view>
		<view class="title">
			修改文本大小
		</view>
		<view>
			<slider :value="fontSize" @change="sizeChange()" />
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				fontSize: parseInt(this.$store.state.gTitle.fontSize)
			}
		},
		methods: {
			sizeChange(e) {
				this.fontSize = e.detail.value;
				this.$store.commit("setSize", e.detail.value)
			}
		}
	}
</script>

<style>
</style>
